﻿/**
 * Copyright (C) 2011 original author and authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NGuice.Inject.Binder;

namespace NGuice.Inject
{
    /// <summary>
    /// 私有binder的配置信息默认的将从他的环境中隐藏。详细信息可参考：
    /// <seealso cref=" NGuice.Inject.PrivateModule PrivateModule} "/>
    /// </summary>
    public interface IPrivateBinder : IBinder
    {
        /// <summary>
        /// 为指定的Key构建binding以便对闭包环境有效
        /// </summary>
        void Expose(Key key);

        /// <summary>
        /// 为指定的类型构建binding以便对闭包环境有效。他使用
        /// <see cref=" NGuice.Inject.Binder.IAnnotatedElementBuilder.AnnotatedWith(Class)"/>
        /// 来暴露具有指定binding元特性注释的类型
        /// </summary>
        IAnnotatedElementBuilder Expose(Type type);

        IPrivateBinder WithSource(object source);

        IPrivateBinder SkipSources(params Type[] classesToSkip);
    }
}
